<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
	Object nick = RequestManager.getRequest(request).get("NICK");
	MemberProc mem = new MemberProc();
	SoptHashMap hm = mem.getMemberInfoByNick(nick!=null?nick.toString():"");
%>

<%@page import="comm.util.RequestManager"%>
<%@page import="member.MemberProc"%>
<%@page import="comm.util.SoptHashMap"%>
<%@page import="statics.SoptVars"%>

<%@page import="java.util.ArrayList"%>
<%@page import="comm.util.CommUtil"%><div>
	<input type="button" onclick="javascript:closeProfileUser()" value="프로필창 끄기">
</div>
<%if(hm!=null && hm.get("MEMBER_NICK")!=null){
	String opens[] = hm.get("MEMBER_OPEN").toString().split(" ");
	int j = 0;
	ArrayList groups = mem.getMembersGroup(hm.get("MEMBER_SEQ").toString());
	%>
<h2><%=hm.get("MEMBER_NICK") %></h2>
<div><%=hm.get("MEMBER_EMAIL") %></div>
<div>
	<%if(hm.get("MEMBER_PIC_URL")!=null && hm.get("MEMBER_PIC_URL").toString().length()>6){ %>
	<img src="data/<%=hm.get("MEMBER_PIC_URL")%>" width="<%=SoptVars.IMG_WIDTH %>" height="<%=SoptVars.IMG_HEIGHT %>"/>
	<%}else{ %>
	이미지 없음
	<%} %>
</div>
<div>Homepage : <%=opens[j++].equals("1")?CommUtil.NVL(hm.get("MEMBER_HOMEPAGE"),""):"비공개"%></div>
<div>Mobile : <%=opens[j++].equals("1")?CommUtil.NVL(hm.get("MEMBER_PHONE"),""):"비공개"%></div>
<div>Twitter : <%=opens[j++].equals("1")?CommUtil.NVL(hm.get("MEMBER_TWITTER"),""):"비공개"%></div>
<div>Me2day : <%=opens[j++].equals("1")?CommUtil.NVL(hm.get("MEMBER_ME2DAY"),""):"비공개"%></div>
<div>Introduce : <%=opens[j++].equals("1")?CommUtil.NVL(hm.get("MEMBER_INTRO"),""):"비공개"%></div>
<div>이분의 그룹들</div>
<div>
<%
	if(groups!=null){%>
	<h2><%=groups.size() %>개의 그룹(태그)</h2>
	<%for(int i=0;i<groups.size();i++){
			SoptHashMap tagM = (SoptHashMap)groups.get(i);
	%>  
		<div class="mainTagItem">
			<a href="javascript:callRegContentForm('<%=tagM.get("TAG_SEQ")%>','<%=tagM.get("TAG_TEXT")%>');">
				<%=tagM.get("TAG_TEXT")%>
			</a>
		</div>
		<%}}else{ %>
		<div>등록된 글이 없어 그룹(태그)가 없습니다.</div>
	<%} %>
</div>
<%}%>